home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update27.zoo / gcc-233 / README.TOS < prev    next >
Encoding:
Text File  |  1992-12-28  |  4.1 KB  |  117 lines

  1. This is the README file for the GNU native/cross compiler. Diffs are
  2. with respect to GCC V2.3.3
  3.  
  4.     -configuration:
  5.         copy all the files from the gcc v2.3.3 distribution
  6.         into a directory called SRC (i created symbolic links between
  7.         the files).
  8.         copy all the files from the gcc v2.3.3 distribution
  9.              sub-directory config into SRC/config
  10.         copy all the files in this directory into SRC.
  11.         copy xm-atari.h and tm-atari.h into SRC/config
  12.         cd to SRC
  13.         Apply the diffs using larry walls patch program
  14.             patch -p < gcc-233.diff
  15.         make the following links in SRC
  16.             config.h to config/xm-atari.h
  17.             tconfig.h to config/xm-atari.h
  18.             hconfig.h to config/xm-atari.h
  19.             tm.h to config/tm-atari.h
  20.             aux-output.c to config/m68k.c
  21.             md to config/m68k.md
  22.  
  23.         edit Makefile.* to make sure the following
  24.         are defined appro.:
  25.         CROSSDIR -- the home directory of the cross dev. system
  26.  
  27.         look over tm-atari.h and xm-atari.h
  28.  
  29.         edit config/tm-atari.h and at the top of the file set
  30.         TARGET_DEFAULT appropriately. this file is now
  31.         conditionalized for various combinations of 
  32.         68000/68020/68881
  33.  
  34.         you DO NOT have to edit gcc.c anymore to look for paths to edit.
  35.  
  36.     -if you already have a native tos-gcc and want to use
  37.      that to make new tos executables, skip the next few
  38.      steps that make the cross-compiler system.
  39.      Please note that you will not be able to compile the
  40.      compiler itself on a St with less that 2.5 M of memory.
  41.  
  42.     -make cross compiler by
  43.         make -f Makefile.cross
  44.     will make and install gcc-cpp.ttp, gcc-cc1.ttp  and gcc.ttp
  45.  
  46.     -clean out the directory by
  47.         make -f Makefile.cross clean
  48.     - go and make a cross-gas cross-ld and cross-as
  49.     - make the tos gcc libraries using the cross-compiler
  50.       system you made above.
  51.  
  52.     - to make atari st executables
  53.        - make and install cross compiler as above (or use your native
  54.         tos-gcc compiler)
  55.        - make by
  56.         make -f Makefile.st
  57.  
  58. Please note: *.c files in this directory are the already patched files
  59. for the gcc-src directory.
  60.  
  61. which makefile to use:
  62.  
  63.  
  64. On a (BSD unix host)       On a HPUX host
  65. (Only sun sparc tested)
  66.  
  67. GMakefile        GMakefile.hp        to make the CROSS-g++ parts
  68. GMakefile.st        GMakefile.st.hp        to make NATIVE-g++ parts
  69. Makefile.cross      Makefile.hp        to make CROSS-gcc parts
  70. Makefile.st        Makefile.st.hp        to make NATIVE-gcc parts
  71.  
  72.  
  73. NATIVE parts are 68k code that run on the atari.
  74. CROSS parts run on the HOST and not on the atari.
  75.  
  76. --
  77. bang:   uunet!cadence!bammi            jwahar r. bammi
  78. domain: bammi@cadence.com
  79. GEnie:    J.Bammi
  80. CIS:    71515,155
  81.  
  82. note about gcc/precompiled headers/unixmode:
  83.  
  84. Return-Path: <uunet!iti.informatik.th-darmstadt.de!alexlehm>
  85. From: uunet!iti.informatik.th-darmstadt.de!alexlehm
  86. Subject: GCC 2.x problem with 'precompiled headers' solved
  87. To: bammi
  88. Date: Fri, 19 Jun 92 14:30:19 MET DST
  89. X-Mailer: ELM [version 2.3 PL11]
  90.  
  91. Hi Jwahar,
  92.  
  93.   I just build a cross compiler for GCC2.2.2 for my new NeXTstation and I must
  94. say I'm rather pleased with the speed I get with this hardware.
  95. I explored the problem with include filesname and I think I came up with a
  96. solution:
  97.  
  98.  The new GCC already accepts precompiled headers even if he cannot create any.
  99. This is done by searching for file with an added number to the normal include
  100. name. e.g. config.h becomed config.h0, config.h1 etc. This works just fine
  101. with the native compiler as long as the extension of the name is less than
  102. three chars. If this is the case, a filename becomes something like this:
  103. atari.trm0. If UNIXMODE is set right this will result in no problem since the
  104. name can be distinguished from the normal name, but if only normal TOS filenames
  105. are allowed, the original header file is found under this name and he tries to
  106. load the file as precompiled header. This of course fails and he reties with
  107. atari.trm1 and so on. In other words, the compiler just hangs up.
  108. I changed the code to check whether UNIXMODE is set and if the filename has
  109. a too long extension. In this case the name if converted to something like
  110. atari.tr0. The same conversion will have to be made when dumping headers, but
  111. as far as I tried this feature doesn't work up to now.
  112.  
  113. the diff is with respect to gcc.2.2.1 pl1 (the one that came with update22).
  114.  
  115.                         bye ... Alexander
  116.  
  117.